<?php /*a:2:{s:57:"/www/wwwroot/llz/application/admin/view/config/index.html";i:1708787828;s:58:"/www/wwwroot/llz/application/admin/view/public/father.html";i:1708691164;}*/ ?>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/layuiadmin/style/admin.css" media="all">
    <style>*{font-weight: 300;}</style>
    
</head>
<body>

<div style="margin: 15px;">
    
<div class="layui-tab layui-tab-card">

	<ul class="layui-tab-title">

		<?php foreach($system_config as $k=>$v): if($k == 'base'): ?>

		<li <?php echo input('param.group')=='base'||input('param.group') == null?' class="layui-this"':''; ?>>
		<a href="<?php echo url('admin/config/index'); ?>?group=<?php echo htmlentities($k); ?>"><?php echo htmlentities($v); ?></a>
		</li>

		<?php else: ?>

		<li <?php echo input('param.group')==  $k  ?' class="layui-this"':''; ?>>
		<a href="<?php echo url('admin/config/index'); ?>?group=<?php echo htmlentities($k); ?>"><?php echo htmlentities($v); ?></a>
		</li>

		<?php endif; ?>

		<?php endforeach; ?>

		<li>
			<a class="layui-btn layui-btn-sm" onclick="openUrl('添加', '<?php echo url('admin/config/create',['group'=>app('request')->param('group')]); ?>', 800);return false;"><i class="layui-icon layui-icon-add-1"></i> 添加</a>
		</li>
	</ul>

	<div class="layui-tab-content" style="background: #FFFFFF;">

		<blockquote class="layui-elem-quote layui-quote-nm">
			<span style="color:#FF5722;font-size: 150%;">
				<i class="layui-icon layui-icon-rate-solid"></i><i class="layui-icon layui-icon-rate-solid"></i><i class="layui-icon layui-icon-rate-solid"></i><i class="layui-icon layui-icon-rate-solid"></i><i class="layui-icon layui-icon-rate-solid"></i>
				此处是系统关键设置，请谨慎操作，如果不懂，请勿进行任何操作！</span>
		</blockquote>

		<table class="layui-hide" id="dataTable" lay-filter="dataTable"></table>

		<script type="text/html" id="status">
			{{ d.status==1 ? '已启用' : '<span style="color: orange;">已禁用</span>' }}
		</script>

		<script type="text/html" id="barDemo">
			<div class="layui-btn-group">
				<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>改</a>
				<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="del" data-table="configs"><i class="layui-icon layui-icon-delete"></i>删</a>
			</div>
		</script>

	</div>
</div>

</div>

<script src="/static/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/static/layuiadmin/layui/layui.js" type="text/javascript"></script>
<script src="/static/js/public.js" type="text/javascript"></script>

<script type="text/javascript">
	layui.use(['jquery','table', 'form'], function() {
		var table = layui.table,
				form = layui.form,
				$ = layui.jquery;

		table.render({
			elem: '#dataTable',
			url: "<?php echo url('?group='.input('param.group')); ?>",
			title: '数据表',
			cellMinWidth: 200,
			limit: 20,
			// height: 'full-360',
			cols: [[
				{field: 'left', title:'操作',	width:120,	align:'center',	toolbar:'#barDemo'},
				{field: 'status',title:'状态',	width:100,	align:'center',	sort:true,	templet:'#status'},
				{field: 'sort',  title:'排序',	width:100,	align:'center',	sort:true},
				{field: 'type',  title:'类型',	width:100,	align:'center',	sort:true},
				{field: 'title', title:'标题',	width:180,	align:'right',	sort:true},
				{field: 'name',  title:'标识',	width:250,	align:'left',	sort:true},
				{field: 'value', title:'默认值'},
				{field: 'tips', title:'配置提示'},
			]],
			page: true
		});

	});

</script>

</body>
</html>